<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "mops_temp_user_gift".
 *
 * @property int $id
 * @property int $user_id
 * @property int $gift_card_id
 * @property int $catalog
 * @property int $created_at
 * @property int $updated_at
 * @property string $error_msg
 * @property int $status
 */
class TempUserGift extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'mops_temp_user_gift';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['user_id', 'gift_card_id', 'catalog', 'created_at', 'updated_at', 'status'], 'integer'],
            [['error_msg'], 'string'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => 'User ID',
            'gift_card_id' => 'Gift Card ID',
            'catalog' => 'Catalog',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'error_msg' => 'Error Msg',
            'status' => 'Status',
        ];
    }
}
